#-*- codeing = utf-8 -*-
#@Time:2022/9/1414:32
#@Author :计科1813-14-张玉婷
#@File:3.8.py
#@Software:PyCharm

import random
my = 50
i=0
computerlist = ["石头", "剪刀", "布"]
while 1:
    i = i + 1
    my = my - 5
    if my < 100 and my > 0:
        print("*" * 50)
        print("第%d回合开始，扣除5金币，当前金币为%d" % (i, my))
        mypoint = input("您请出（石头、剪刀、布）：")
        computerpoint = random.choice(computerlist)
    if my<100 and my>0:
        mypoint = input("您请出：")
        computerpoint = random.choice(computerlist)
        if mypoint == computerpoint:
            print("您出的是：%s,电脑出的是：%s，本回合平局，当前您的金币为%d"% (mypoint, computerpoint, my))
        elif mypoint == "石头" and computerpoint == "剪刀":
            my = my+10
            print("您出的是：%s,电脑出的是：%s，本回合您赢了,当前您的金币为%d" % (mypoint, computerpoint, my))
        elif mypoint == "石头" and computerpoint == "布":
            my = my-5
            print("您出的是：%s,电脑出的是：%s，本回合您输了,当前您的金币为%d" % (mypoint, computerpoint, my))
        elif mypoint == "剪刀" and computerpoint == "布":
            my = my+10
            print("您出的是：%s,电脑出的是：%s，本回合您赢了,当前您的金币为%d" % (mypoint, computerpoint, my))
        elif mypoint == "剪刀" and computerpoint == "石头":
            my = my-5
            print("您出的是：%s,电脑出的是：%s，本回合您输了,当前您的金币为%d" % (mypoint, computerpoint, my))
        elif mypoint == "布" and computerpoint == "石头":
            my = my+10
            print("您出的是：%s,电脑出的是：%s，本回合您赢了,当前您的金币为%d" % (mypoint, computerpoint,my))
        elif mypoint == "布" and computerpoint == "剪刀":
            my = my-5
            print("您出的是：%s,电脑出的是：%s，本回合您输了,当前您的金币为%d" % (mypoint, computerpoint, my))
    else:
        break
if my >= 100:
    print("本局游戏您赢了，您的金币为%d" % my)
else:
    print("本局游戏您输了，您的金币为%d" % my)